
// @ts-nocheck
import { createRouter, createWebHistory } from "vue-router";

// 配置路由跳转的 组件

const routes = [
    {
        path: "/",
        name: "E",
        component: v => import("@/pages/01A/index.vue"),
        children: [],
    },
    {
        path: "/HomeOne",
        name: "HomeOne",
        component: v => import("@/pages/HomeOne/index.vue"),
        children: [],
    },
    {
        path: "/zhaosheng",
        name: "zhaosheng",
        component: v => import("@/pages/ZhaoSheng/index.vue"),
        children: [],
    },
    {
        path: "/tuijian",
        name: "tuijian",
        component: v => import("@/pages/TuiJian/index.vue"),
        children: [],
    },
    {
        path: "/introduce",
        name: "introduce",
        component: v => import("@/pages/IntroDuce/index.vue"),
        children: [],
    },
    {
        path: "/HomeTwo",
        name: "HomeTwo",
        component: v => import("@/pages/HomeTwo/index.vue"),
        children: []
    },
    {
        path: "/xinjiapo",
        name: "xinjiapo",
        component: v => import("@/pages/XinJiaPo/index.vue"),
        children: []
    },
    {
        path: "/hanguo",
        name: "hanguo",
        component: v => import("@/pages/HanGuo/index.vue"),
        children: []
    },
    {
        path: "/benshuo",
        name: "benshuo",
        component: v => import("@/pages/BenShuo/index.vue"),
        children: []
    },
    {
        path: "/twobenke",
        name: "twobenke",
        component: v => import("@/pages/TwoBenke/index.vue"),
        children: []
    },
    {
        path: "/benkeyi",
        name: "benkeyi",
        component: v => import("@/pages/BenKeYi/index.vue"),
        children: []
    },
    {
        path: "/hangkong",
        name: "hangkong",
        component: v => import("@/pages/HangKong/index.vue"),
    },
    {
        path: "/kongcheng",
        name: "hangkkongchengong",
        component: v => import("@/pages/kongcheng/index.vue")
    },
    {
        path: '/youlun',
        name: 'youlun',
        component: v => import('@/pages/youlun/index.vue'),
    },
    {
        path:"/Service",
        name:"Service",
        component:v => import("@/pages/Service/index.vue"),
    }
];


// 路由对象

const router = createRouter({
    history: createWebHistory(),
    routes,
});
router.beforeEach((to, from, next) => {
    document.documentElement.scrollTop = 0;
    next();
})
export default router;